<template>
  <div id="GoodsLink">
    <x-header slot="header" style="width:100%;position:absolute;left:0;top:0;z-index:100;"
              :left-options="{showBack: false, backText: '',preventGoBack:preventGoBack}">{{title}}
      <router-link slot="left" to="/index">
        <img  src="../../assets/images/list_left.jpg" alt="">
      </router-link>
      <div slot="right">
        <router-link :to="'/gitem/complaint/index?refuse=1&listType=service&orderNum='+num">
          <img src="../../assets/images/list_right.jpg" alt="">
        </router-link>
      </div>
    </x-header>
  </div>
</template>

<script>
  import {mapState} from 'vuex'
  import {XHeader, TransferDom, cookie} from 'vux'

  export default {
    directives: {
      TransferDom
    },
    components: {
      XHeader
    },
    computed: {
      ...mapState({
        showBack: state => state.vux.showBack,
        preventGoBack: state => state.vux.preventGoBack,
        urlBack: state => state.vux.urlBack,
        title: state => state.vux.title,
        greenRightNum:state => state.vux.greenRightNum
      })
    },
    data () {
      return {
      }
    },
    created(){

    },
    mounted(){
    },
    methods: {

    }
  }
</script>
<style lang="less">
  @green:#51ac33;
  @blue:#1babe3;
  #GoodsLink{
    height:46px;
  }
  #GoodsLink .vux-header-title {
    font-size: 18px;
  }
  #GoodsLink .menu {
    margin-right: 70px;
  }
  #GoodsLink .menu div {
    color: #000;
  }
  #GoodsLink .menu:before {
    right: -70px;
  }
  #GoodsLink .vux-header{
    background-color: @green !important;
    .vux-header-title{
      color:#fff !important;
    }
    .vux-header-right a{
      color: #ffffff !important;
    }
    .vux-header-left .left-arrow:before{
      border:1px solid #ffffff !important;
      border-width:1px 0 0 1px !important;
    }
    .vux-header-right{
      top:12px !important;
      img{
        width: 24px;
        height: 24px;
      }
    }
    .vux-header-left{
      top:11px !important;
      img{
        width: 25px;
        height: 25px;
      }
    }
  }
</style>
